<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="lfn" uri="http://tags.lorizz.com/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table>
		<tr>
			<td><c:if test="${not empty account}">USER HOME ${account}</c:if>
			</td>
		</tr>
		<c:if test="${showMain}">
			<tr>
				<td>Profile</td>
			</tr>
		</c:if>
		<c:choose>
			<c:when test="${not empty albums}">
				<tr>
					<td><c:forEach items="${albums}" var="album">
							<div style="width: 155px; height: 155px; float: left">
								<div>
									<c:choose>
										<c:when test="${not empty imageVars[album.id]}">
											<a href="/i/v/${album.id}-30-1"><img
												src="${lfn:externalize(imageVars[album.id].uri)}" />
											</a>
										</c:when>
										<c:otherwise>
											<c:choose>
												<c:when test="${imageCounts[album.id] == 0}">
													<a href="/i/v/${album.id}-30-1"><img
														src="/resources/empty.thumbnail.middle.jpg" />
													</a>
												</c:when>
												<c:otherwise>
													<a href="/i/v/${album.id}-30-1"><img
														src="/resources/processing.thumbnail.middle.jpg" />
													</a>
												</c:otherwise>
											</c:choose>
										</c:otherwise>
									</c:choose>
								</div>
								<div>${album.title}(${imageCounts[album.id]})</div>
							</div>
						</c:forEach></td>
				</tr>
			</c:when>
			<c:otherwise>
				<tr>
					<td>no albums create one</td>
				</tr>
			</c:otherwise>
		</c:choose>

	</table>

</body>
</html>